package com.guigu.controller.lq.service.impl;

import com.guigu.controller.lq.mapper.LqYdfaMapper;
import com.guigu.controller.lq.pojo.LqYdfa;
import com.guigu.controller.lq.service.LqYdfaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LqYdfaServiceimpl implements LqYdfaService {
    @Autowired
    LqYdfaMapper lqYdfaMapper;
    public int tjyd(LqYdfa lqYdfa) {
        return lqYdfaMapper.insert(lqYdfa);
    }

    public List<LqYdfa> setyd(Integer modid) {
        return lqYdfaMapper.selyd(modid);
    }

    public int delyd(Integer modid) {
        return lqYdfaMapper.deleteByPrimaryKey(modid);
    }

    public int upyd(LqYdfa lqYdfa) {
        return lqYdfaMapper.updateByPrimaryKey(lqYdfa);
    }
}
